package cron

import (
	"github.com/robfig/cron/v3"
	"server/app/crons"
)

func Run() {
	c := cron.New()
	for _, v := range crons.CRON_REGISTER {
		_, _ = c.AddFunc(v.GetCorn(), v.Run)
	}
	c.Start()
}
